package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceRefuseMapper;
import com.ruoyi.service.domain.ServiceRefuse;
import com.ruoyi.service.service.IServiceRefuseService;

/**
 * 拒单或转介Service业务层处理
 * 
 * @author ZDL
 * @date 2024-12-09
 */
@Service
public class ServiceRefuseServiceImpl implements IServiceRefuseService 
{
    @Autowired
    private ServiceRefuseMapper serviceRefuseMapper;

    /**
     * 查询拒单或转介
     * 
     * @param refuseId 拒单或转介主键
     * @return 拒单或转介
     */
    @Override
    public ServiceRefuse selectServiceRefuseByRefuseId(Long refuseId)
    {
        return serviceRefuseMapper.selectServiceRefuseByRefuseId(refuseId);
    }

    /**
     * 查询拒单或转介列表
     * 
     * @param serviceRefuse 拒单或转介
     * @return 拒单或转介
     */
    @Override
    public List<ServiceRefuse> selectServiceRefuseList(ServiceRefuse serviceRefuse)
    {
        return serviceRefuseMapper.selectServiceRefuseList(serviceRefuse);
    }

    /**
     * 新增拒单或转介
     * 
     * @param serviceRefuse 拒单或转介
     * @return 结果
     */
    @Override
    public int insertServiceRefuse(ServiceRefuse serviceRefuse)
    {
        return serviceRefuseMapper.insertServiceRefuse(serviceRefuse);
    }

    /**
     * 修改拒单或转介
     * 
     * @param serviceRefuse 拒单或转介
     * @return 结果
     */
    @Override
    public int updateServiceRefuse(ServiceRefuse serviceRefuse)
    {
        return serviceRefuseMapper.updateServiceRefuse(serviceRefuse);
    }

    /**
     * 批量删除拒单或转介
     * 
     * @param refuseIds 需要删除的拒单或转介主键
     * @return 结果
     */
    @Override
    public int deleteServiceRefuseByRefuseIds(Long[] refuseIds)
    {
        return serviceRefuseMapper.deleteServiceRefuseByRefuseIds(refuseIds);
    }

    /**
     * 删除拒单或转介信息
     * 
     * @param refuseId 拒单或转介主键
     * @return 结果
     */
    @Override
    public int deleteServiceRefuseByRefuseId(Long refuseId)
    {
        return serviceRefuseMapper.deleteServiceRefuseByRefuseId(refuseId);
    }
}
